package main

import "fmt"

func main() {
	// 输入：s = ["h","e","l","l","o"]
	// 输出：["o","l","l","e","h"]
	var s = []byte{3, 4, 5, 5, 6}
	fmt.Println(s)
	for i := 0; i < len(s)/2; i++ {
		s[i], s[len(s)-i-1] = s[len(s)-i-1], s[i]
	}
	fmt.Println(s)

	for left, right := 0, len(s)-1; left < right; left++ {
		s[left], s[right] = s[right], s[left]
		right--
	}
	fmt.Println("sss", s)

}
